export default {
    methods: {
        //  获取定位
        getLocation() {
            //  封装成promise 
            return new Promise((resolve) => {
                var myCity = new BMapGL.LocalCity();
                myCity.get((result) => {
                    var cityName = result.name;
                    resolve(cityName)
                });

            })
        },
    }
}